#include"process.h"
//函数的定义
char style[S_NUM]={'-','.','#','>','+'};
void ProcessOn()
{
    int cnt=0;
    char bar[NUM];
    memset(bar,'\0',sizeof(bar));
    const char *label="|\\-/";
    while(cnt<=100)
    {
       // printf("[%-100s][%d%%][%c]\r",bar,cnt,label[cnt%4]);
       printf("\033[42;34m[%-100s][%d%%][%c]\033[0m\r",bar,cnt,label[cnt%4]);
        fflush(stdout);
        bar[cnt++]=style[N];
        usleep(50000);
    }
    printf("\n");
}
